﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005F1 RID: 1521
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FriendRecommendInfo : IMessage<FriendRecommendInfo>, IMessage, IEquatable<FriendRecommendInfo>, IDeepCloneable<FriendRecommendInfo>, IBufferMessage
	{
		// Token: 0x17001387 RID: 4999
		// (get) Token: 0x06004468 RID: 17512 RVA: 0x000BB2D5 File Offset: 0x000B94D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FriendRecommendInfo> Parser
		{
			get
			{
				return FriendRecommendInfo._parser;
			}
		}

		// Token: 0x17001388 RID: 5000
		// (get) Token: 0x06004469 RID: 17513 RVA: 0x000BB2DC File Offset: 0x000B94DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FriendRecommendInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001389 RID: 5001
		// (get) Token: 0x0600446A RID: 17514 RVA: 0x000BB2EE File Offset: 0x000B94EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FriendRecommendInfo.Descriptor;
			}
		}

		// Token: 0x0600446B RID: 17515 RVA: 0x000BB2F5 File Offset: 0x000B94F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendRecommendInfo()
		{
		}

		// Token: 0x0600446C RID: 17516 RVA: 0x000BB300 File Offset: 0x000B9500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendRecommendInfo(FriendRecommendInfo other) : this()
		{
			this.kMJBMKALNOJ_ = other.kMJBMKALNOJ_;
			this.playerInfo_ = ((other.playerInfo_ != null) ? other.playerInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600446D RID: 17517 RVA: 0x000BB34C File Offset: 0x000B954C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendRecommendInfo Clone()
		{
			return new FriendRecommendInfo(this);
		}

		// Token: 0x1700138A RID: 5002
		// (get) Token: 0x0600446E RID: 17518 RVA: 0x000BB354 File Offset: 0x000B9554
		// (set) Token: 0x0600446F RID: 17519 RVA: 0x000BB35C File Offset: 0x000B955C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool KMJBMKALNOJ
		{
			get
			{
				return this.kMJBMKALNOJ_;
			}
			set
			{
				this.kMJBMKALNOJ_ = value;
			}
		}

		// Token: 0x1700138B RID: 5003
		// (get) Token: 0x06004470 RID: 17520 RVA: 0x000BB365 File Offset: 0x000B9565
		// (set) Token: 0x06004471 RID: 17521 RVA: 0x000BB36D File Offset: 0x000B956D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerSimpleInfo PlayerInfo
		{
			get
			{
				return this.playerInfo_;
			}
			set
			{
				this.playerInfo_ = value;
			}
		}

		// Token: 0x06004472 RID: 17522 RVA: 0x000BB376 File Offset: 0x000B9576
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FriendRecommendInfo);
		}

		// Token: 0x06004473 RID: 17523 RVA: 0x000BB384 File Offset: 0x000B9584
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FriendRecommendInfo other)
		{
			return other != null && (other == this || (this.KMJBMKALNOJ == other.KMJBMKALNOJ && object.Equals(this.PlayerInfo, other.PlayerInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004474 RID: 17524 RVA: 0x000BB3D4 File Offset: 0x000B95D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.KMJBMKALNOJ)
			{
				num ^= this.KMJBMKALNOJ.GetHashCode();
			}
			if (this.playerInfo_ != null)
			{
				num ^= this.PlayerInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004475 RID: 17525 RVA: 0x000BB429 File Offset: 0x000B9629
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004476 RID: 17526 RVA: 0x000BB431 File Offset: 0x000B9631
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004477 RID: 17527 RVA: 0x000BB43C File Offset: 0x000B963C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.KMJBMKALNOJ)
			{
				output.WriteRawTag(96);
				output.WriteBool(this.KMJBMKALNOJ);
			}
			if (this.playerInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.PlayerInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004478 RID: 17528 RVA: 0x000BB498 File Offset: 0x000B9698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.KMJBMKALNOJ)
			{
				num += 2;
			}
			if (this.playerInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PlayerInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004479 RID: 17529 RVA: 0x000BB4E4 File Offset: 0x000B96E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FriendRecommendInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.KMJBMKALNOJ)
			{
				this.KMJBMKALNOJ = other.KMJBMKALNOJ;
			}
			if (other.playerInfo_ != null)
			{
				if (this.playerInfo_ == null)
				{
					this.PlayerInfo = new PlayerSimpleInfo();
				}
				this.PlayerInfo.MergeFrom(other.PlayerInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600447A RID: 17530 RVA: 0x000BB54C File Offset: 0x000B974C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600447B RID: 17531 RVA: 0x000BB558 File Offset: 0x000B9758
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					if (num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.playerInfo_ == null)
						{
							this.PlayerInfo = new PlayerSimpleInfo();
						}
						input.ReadMessage(this.PlayerInfo);
					}
				}
				else
				{
					this.KMJBMKALNOJ = input.ReadBool();
				}
			}
		}

		// Token: 0x04001AF7 RID: 6903
		private static readonly MessageParser<FriendRecommendInfo> _parser = new MessageParser<FriendRecommendInfo>(() => new FriendRecommendInfo());

		// Token: 0x04001AF8 RID: 6904
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001AF9 RID: 6905
		public const int KMJBMKALNOJFieldNumber = 12;

		// Token: 0x04001AFA RID: 6906
		private bool kMJBMKALNOJ_;

		// Token: 0x04001AFB RID: 6907
		public const int PlayerInfoFieldNumber = 15;

		// Token: 0x04001AFC RID: 6908
		private PlayerSimpleInfo playerInfo_;
	}
}
